package com.example.wlzz.form;

import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class TaskForm {
    @NotNull
    @ApiParam("主分类(这里需要的是主分类的名称)")
    private String category;  //主分类
    @NotNull
    @ApiParam("子分类(这里需要的是子分类的名称)")
    private String subCategory;  //子分类
    @NotNull
    @ApiParam("标题")
    private String title; //标题
    @NotNull
    @ApiParam("任务内容")
    private String content; //任务内容
    @NotNull
    @ApiParam("纬度")
    private double latitude; //纬度
    @NotNull
    @ApiParam("经度")
    private double longitude; //经度
    @Min(value = 0)
    @ApiParam("金额")
    private double money;
}
